<template>
  <div>
    <el-container >
      <el-header style="background-color: darkgray">
        <h1>云山贷款系统</h1>
        </el-header>
      <el-container >
        <!-- <el-aside width="200px" style="background-color: rgb(238, 241, 246)"> -->
          <el-aside width="200px" style="background-color:#4F4F4F">
          <el-menu :default-openeds="['1', '2']" style="background-color:#4F4F4F">
            <el-submenu index="1" style="background-color:#4F4F4F" >
              <template slot="title" >
                <i class="el-icon-message" ></i>员工管理
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/Staff">员工信息</router-link>
                <!-- <el-menu-item index="1-2">选项2</el-menu-item> -->
              </el-menu-item-group>
              <el-menu-item-group>
                <router-link tag="span" to="/StaffLog">日志信息</router-link>
              </el-menu-item-group>
            </el-submenu>

            


            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-message"></i>贷款信息
              </template>
             <el-menu-item-group>
                <router-link tag="span" to="/UserAdd">添加贷款信息</router-link>
              </el-menu-item-group>
              <el-menu-item-group>
                <router-link tag="span" to="/GaodeMapTwo">贷款位置信息</router-link>
              </el-menu-item-group>
            </el-submenu>

           <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-message"></i>风控审核
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/OrdersInfo">订单列表</router-link>
              </el-menu-item-group>
               <el-menu-item-group>
                <router-link tag="span" to="/OrdersLog">日志信息</router-link>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-message"></i>财务模块
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/Finance">财务列表</router-link>
              </el-menu-item-group>
              <el-menu-item-group>
                <router-link tag="span" to="/Financeinandout">财务进出帐记录</router-link>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-message"></i>用户模块
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/user">用户列表</router-link>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="6">
              <template slot="title">
                <i class="el-icon-message"></i>产品模块
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/userPay">产品详情</router-link>
              </el-menu-item-group>

              <el-menu-item-group>
                <router-link tag="span" to="/userPayAdd">新增产品</router-link>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="7">
              <template slot="title">
                <i class="el-icon-message"></i>风控管理
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/RuleAdd">添加准入规则</router-link>
              </el-menu-item-group>
              <el-menu-item-group>
                <router-link tag="span" to="/Rule">准入规则配置</router-link>
              </el-menu-item-group>
               <el-menu-item-group>
                <router-link tag="span" to="/Log">规则策略操作日志</router-link>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="8">
              <template slot="title">
                <i class="el-icon-message"></i>贷后管理
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/normalReminder">正常还款提醒</router-link>
              </el-menu-item-group>
               <el-menu-item-group>
                <router-link tag="span" to="/repaymentDetails">还款明细</router-link>
              </el-menu-item-group>
              <el-menu-item-group>
                <router-link tag="span" to="/overdueCollection">逾期催收</router-link>
              </el-menu-item-group>
            </el-submenu>

           


            <el-submenu index="9">
              <template slot="title">
                <i class="el-icon-message"></i>合同模块
              </template>
              <el-menu-item-group>
                <router-link tag="span" to="/Contract">合同列表</router-link>
              </el-menu-item-group>
               <el-menu-item-group>
                <router-link tag="span" to="/ContractLog">合同日志</router-link>
              </el-menu-item-group>
              <el-menu-item-group>
                <router-link tag="span" to="/ContractSign">合同签署表</router-link>
              </el-menu-item-group> 
            </el-submenu>

            
            

          </el-menu>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
//导入axios
import axios from "axios";

export default {
  data() {
    return {
      tableData: [],
      pageIndex: 1,
      pageSize: 5
    };
  },
  created() {
    //生命周期方法
    // this.getStudents();
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
    getStudents() {
      this.$axios
        .get("http://localhost:8080/getRenrCarIn", {
          params: {
            pageIndex: this.pageIndex,
            pageSize: this.pageSize
          }
        })
        .then(resp => {
          this.tableData = resp.data.data.beanList;
        });
    }
  }
};
</script>

<style scoped>
/* 定义样式 */
</style>